home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
tex-k
/
tex-eplain-archive
/
000023_adam@symcom.math.uiuc.edu_Thu Aug 11 08:29:00 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1995-01-08
|
3KB
Received: from orion.math.uiuc.edu by cs.umb.edu with SMTP id AA27728
(5.65c/IDA-1.4.4 for <tex-eplain@cs.umb.edu>); Thu, 11 Aug 1994 14:31:11 -0400
Received: by orion.math.uiuc.edu id AA26341
(5.67b/IDA-1.4.4 for tex-eplain@cs.umb.edu); Thu, 11 Aug 1994 13:29:00 -0500
Date: Thu, 11 Aug 1994 13:29:00 -0500
From: "Adam H. Lewenberg" <adam@symcom.math.uiuc.edu>
Message-Id: <199408111829.AA26341@orion.math.uiuc.edu>
To: tex-eplain@cs.umb.edu
Subject: margin macros and magnifications: The answer.
Cc: adam@symcom.math.uiuc.edu
Content-Length: 2233
About the margin macros...
If one has set a magnification other than 1000 (i.e. no magnification),
the margin macros will _never_ work correctly.* Here are two example
files that show the problem. After the files I give an explanation why
the macros do not work and a simple fix.
%%%%%%%%
% Example 1
\magnification=2000
\input eplain
\paperwidth=8.5truein
\leftmargin=2truein % We want the left margin to be 2 REAL inches
% from the left (physical edge) of the paper.
\parindent=0pt
Hello.
\bye
% Actual left margin (using dvips): 1 inch
% Example 2
\magnification=2000
\input eplain
\paperwidth=8.5truein
\leftmargin=2in % We want the left margin to be 2 REAL inches
% from the left (physical edge) of the paper.
\parindent=0pt
Hello.
\bye
% Actual left margin (using dvips): 3 inches
%%%%%%%%%%%%
Here is what is actually happening.
The difference between a dvi file using a \magnification statement and
one that does not is just this: if you use a \magnification command
then in the dvi file appears a parameter for overall document
magnification. This INCLUDES \hoffset and \voffset. This is precisely
why \hoffset nad \voffset are set to 0 initially; if they were not,
then the magnification would move the origin around, but since 0 times
anything is still 0, changing the magnification does not change the
origin.
But if you _do_ want to change the origin, you must realize that the
magnifications affect \hoffset and \voffset. Thus, the safest course
of action when setting page layout parameters is to specify everything
in terms of "true" dimensions. Usually when people want their page
length to be 7 inches long they want it 7 inches regardless of the
magnification. This is why \magnification (defined in PLAIN) ensures
that \hsize and \vsize do not change.
So the fix is: replace those "1in"'s in the margin macros by
"1truein"'s and everything will be fine. I did that, and the above
examples work perfectly.
Adam H. Lewenberg
* Actually, that is not quite true. They will work ONLY when \leftmargin is
set equal to 1truein. But this is what you get without using
\leftmargin at all. Perhaps that is why nobody noticed that they are
incorrect.